import org.openqa.selenium.edge.EdgeOptions;

public class Driver {

    public static EdgeOptions getDriver(){
        System.setProperty("webdriver.edge.driver", "D:\\EdgeDriver\\msedgedriver.exe");
        EdgeOptions options = new EdgeOptions();
        //允许访问所有链接
        options.addArguments("--remote-allow-origins=*");
        return options;
    }

}
